﻿using System;
using Karma.Framework.Core.Domain;
using Karma.Framework.Core.Modules.System.QueryEditor;
using Karma.Framework.Core.Repository;
using Ninject.Core;

namespace Karma.Framework.Core.Modules.System
{
    public class SystemModule : StandardModule
    {
        public override void Load()
        {
            Bind<IRepository<DomainObject>>().ToMethod(repo => RepositoryFactory.Create<DomainObject>());

            Bind<IQueryEditorService>().To<QueryEditorService>();
        }
    }
}
